<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<style type="text/css">
<!--
/****/
	td,th{height:20px;line-height:20px;text-align:center;}
	
-->
</style>

<div class="page">
	<div class="pageContent">
		<form id="orderInfo" method="post" action="${ctx }/crm/order-confirm!save.action" class="pageForm required-validate" onsubmit="return validateCallback(this,navTabAjaxDone);">
			<input type="hidden" name="id" value="${id }"/>
			<input type="hidden" name="navTabId" value="orderConfirmList"/>
			<div class="pageFormContent" layoutH="56" >
				<div style="height:30px;line-height:30px;margin-bottom:5px;text-align:center;font-size:12pt;font-weight:bold;">
					北京至好商贸有限公司专用订单
				</div>
				<p>
					<label>客户姓名：</label>
					${customer}
				</p>
				<p>
					<label>订单编号 ：</label>
					${code }
				</p>
				<p>
					<label> 下 单 人：</label>
					${maker}
					
				</p>
				<p>
					<label>下单时间：</label>
					<s:date name="orderdate" format="yyyy-MM-dd HH:mm:ss"/>
				</p>					
				
				<table id="orderdetailTable" style="margin:10px auto 15 auto;padding:0 auto;" align="center" width="95%" cellpadding="0" cellspacing="0" border="1">
					<thead>
						<th height="25">商品名称</th>
						<th>规格型号</th>
						<th>单 位</th>						
						<th>单 价</th>
						<th>数 量</th>
						<th>金 额</th>
					</thead>
					 <s:iterator value="detail" status="stat">
					 	<tr>
					 	<td>
					 	<span>${goodsname}</span>					 		
					 		</td>
						<td>
							<span>${goodsmodel}</span>
						</td>
						<td>
							<span>${goodsunit}</span>
						</td>
						<td><span>${goodsprice}</span></td>
						<td><span>${goodscount}</span></td>
						<td>
						<span class="money">${goodscash}</span>
						</td>
					 	</tr>
					 </s:iterator>
					<tr>
						<td>合 计</td>	
						<td colspan="4">
						（大写） <span id="monyWord">${cashcn}</span>
						</td>
						<td  colspan="2">
						（小写）<span id="monyNO"> ${totalcash }</span>
						</td>
					</tr>
					<tr>
						<td>备 注</td>	
						<td colspan="6">
						<span>${note }</span>
						</td>
					</tr>
				</table>
				<p>
					<label>确认人：</label>
					<input type="hidden" name="confirmid" value="${currUser.id }"/>
					<input type="hidden" name="confirm" value="${currUser.name }"/>
					${currUser.name }
				</p>
				<p>
					<label>发票号码：</label>
					<input type="text" name="recordno" size="30" value=""/>
				</p>
				<p>
					<label>确认时间：</label>
					<input type="hidden" name="confirmdate" value="<s:date name="confirmdate" format="yyyy-MM-dd HH:mm:ss"/>"/>
					<s:date name="confirmdate" format="yyyy-MM-dd HH:mm:ss"/>
				</p>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="button"><div class="buttonContent"><button type="submit"> 收 款 确 认 </button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="Button" onclick="navTab.closeCurrentTab()"> 取 消 </button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
</div>